#
# Makefile for the kernel software RAID and LVM drivers.
#
ifndef KERNEL_VER
KERNEL_VER := `uname -r`
endif

ifndef KERNEL_DIR
KERNEL_DIR = /lib/modules/$(KERNEL_VER)/build
endif

vd-mod-objs	:= vd.o vd-ioctl.o vd-table.o vd-target.o vd-linear.o

obj-m	+= vd-mod.o
obj-m	+=raid.o

all:
	make -C $(KERNEL_DIR) SUBDIRS=`pwd`

clean:
	rm -fr *.o *.ko *.mod.c *.symvers .tmp_versions .*.cmd *.order
